package com.debai.service;

import com.debai.pojo.Order;
import com.debai.util.PageBean;
import com.github.pagehelper.Page;

import java.time.LocalDateTime;
import java.util.List;

public interface OrderService {
    //增加订单信息
    int insert(Order order, String token,String screenName);

    //删除订单信息
    int delete(int id);

    //修改订单信息
    int update(Order order,String token,String screenPosition);

    //查询所有门店的订单总金额信息
    List<Order> selectAllPosititionSumMoney(LocalDateTime startTime,LocalDateTime endTime);

    //查看单个门店详细收入信息
    List<Order> selectOnePasition(int positionId,LocalDateTime startTime,LocalDateTime endTime);

    //查看用户所在门店的订单信息
    List<Order> selectUserOfPasition(String token, LocalDateTime startTime, LocalDateTime endTime);

    //查看单个门店订单的详细信息
    List<Order> detailOfPasitionOrder(int positionId, LocalDateTime startTime, LocalDateTime endTime);

    //查看用户所在门店的订单详细信息
    List<Order> detailUserOfPositionOrder(String token, LocalDateTime startTime, LocalDateTime endTime);

    //查看单个门店订单的详细信息(分页)
    PageBean<Order> selectOnePasitionPageBean(int pageNum, int pageSize, String token, LocalDateTime startTime, LocalDateTime endTime);

}
